function sAlert(){
    Ext.MessageBox.show({
      title:false,
	  msg:"\u8bf7\u6c42\u5904\u7406\u4e2d,\u8bf7\u7b49\u5f85...",
	  buttons:false,
	  fn:false,
	  animEl:"text1",
	  width:500,
	  icon:false,
	  closable:false,
	  progress:true,
	  wait:true,
	  progressText:"  \u8fdb\u5ea6\u6761  "
	  // prompt:true
	  // multiline:true
      });
}
function sAlert1(){
    var msgw,msgh,bordercolor;
    msgw=400;// ÏûÏ¢´°¿Ú¸ß¶È
    msgh=100;// ÏûÏ¢´°¿Ú¿í¶È
    bordercolor="#336699";//
    titlecolor="#99CCFF";//
    
    var sWidth,sHeight;
    sWidth=document.body.offsetWidth-400;
    sHeight=document.body.offsetHeight-300;
    var bgObj=document.createElement("div");
    bgObj.setAttribute('id','bgDiv');
    bgObj.style.position="absolute";
    bgObj.style.top="";
    bgObj.style.background="";
    bgObj.style.filter="progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
    bgObj.style.opacity="0.6";
    bgObj.style.left="";
    bgObj.style.width=sWidth + "px";
    bgObj.style.height=sHeight + "px";
  	document.body.appendChild(bgObj);
  	var msgObj=document.createElement("div")
    msgObj.setAttribute("id","progress");
    msgObj.setAttribute("align","center");
    msgObj.style.position="absolute";
    msgObj.style.top=(document.documentElement.scrollTop + (sHeight)/2) + "px";
 	msgObj.style.left=(sWidth)/2 + "px";
  	msgObj.innerHTML="<div style='position:absolute;top:10;left:70;width:300;height:30;background:white;border:1 #707888 solid;overflow:hidden'><div style='position:absolute;top:-1;left:50' id='pimg'></div></div><div style='position:absolute;top:-5;left:70;font-size:9pt;color:#f4f4f4' id='abc'>ÇëÇó´¦ÀíÖÐ,ÇëÉÔºò.............</div></div>";
  	document.body.appendChild(msgObj);
  	loading();
}
s=new Array();	
s[0]="#B5FFB5";  
s[1]="#BBFFBB";	  
s[2]="#97FF97";  
s[3]="#77FF77";
s[4]="#51FF51";
s[5]="#33FF33";
s[6]="#00FB00";
s[7]="#00F700";
function ls(){
		pimg.innerHTML="";
		for(i=0;i<9;i++){
		pimg.innerHTML+="<input style=\"width:15;height:30;border:0;background:"+s[i]+";margin:1\">";
		}
	}
	
function rs(){
		pimg.innerHTML="";
		for(i=9;i>-1;i--){
		pimg.innerHTML+="<input style=\"width:15;height:30;border:0;background:"+s[i]+";margin:1\">";
		}
	}
	

var g=0;sped=0;
function str(){
	if(pimg.style.pixelLeft<350&&g==0){
	if(sped==0){
		ls();
		sped=1;
		}
	pimg.style.pixelLeft+=10;
	setTimeout("str()",1);
	return;
	}else{
		pimg.style.pixelLeft=0;
		setTimeout("str()",1);
		return;
	}
	g=1;
	if(pimg.style.pixelLeft>-200&&g==1){
	if(sped==1){
		rs();
		sped=0;
		}
	pimg.style.pixelLeft-=10;
	setTimeout("str()",1);
	return;
	}
	g=0;
	str();
}

function flashs(){
if(abc.style.color=="#ffffff"){
	abc.style.color="#707888";
	setTimeout('flashs()',300);
	}
else{
	abc.style.color="#ffffff";
	setTimeout('flashs()',300);
	}
}

function loading(){
document.all.progress.style.display="";
ls();	
flashs();
str();
}
